#!/bin/bash
qemu-system-riscv64 \
        -M virt \
        -enable-kvm \
        -m 256M \
        -kernel bzImage \
        -initrd rootfs.img.gz \
        -append "root=/dev/ram rw rootfstype=ext4 console=ttyS0 init=/linuxrc" \
        -device virtio-blk-device,drive=hd0 \
        -nographic
